package org.ahuanlien.crm.web.controller;

import org.ahuanlien.crm.query.SalesQueryObject;
import org.ahuanlien.crm.service.IReportFormsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

@Controller
@RequestMapping("report")
public class ReportFormsController {

    @Autowired
    private IReportFormsService reportFormsService;

    /*销售报表页面*/
    @RequestMapping("sales")
    public String sales(){
        return "reportform/sales";
    }

    /*理赔报表页面*/
    @RequestMapping("claim")
    public String claim(){
        return "reportform/claim";
    }

    /*销售报表查询*/
    @RequestMapping("order")
    public String orderChart(@ModelAttribute("qo") SalesQueryObject qo, Map map) {
        return "reportform/salesreport";
    }

}
